import React from 'react';
import {connect} from 'react-redux';
import {increaseNumber} from './index'

class Button extends React.Component{
    render(){
        return <button onClick={this.props.handleClick}>increase</button>
    }
}
export default connect(function (state) {
        return state;
    },
    function (dispatch) {
        return {
            handleClick(){
                dispatch(increaseNumber())
            }
        }
})(Button)